package com.team.mapper;

import com.team.pojo.AppVersion;
import com.team.pojo.AppVersionExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppVersionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AppVersion record);

    int insertSelective(AppVersion record);

    List<AppVersion> selectByExample(AppVersionExample example);

    AppVersion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AppVersion record);

    int updateByPrimaryKey(AppVersion record);

    int deleteVersionByAppId(@Param(value = "appid") Long appId);
//    通过appid查询当前版本的信息
    List<AppVersion> getVersionByAppId(Long id);

    //查询最新得app版本信息
    AppVersion getLastVersionByAppId(Long appid);
}